package com.quectel.core.module.partyeducation.dto;

import com.quectel.core.module.partybuilding.dto.PartyOrganizationDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author ryan
 * @email ryan.ran@quectel.com
 * @date 2023/07/06 13:30
 */
@Data
@Schema
public class PartyEducationLibraryUserDto implements Serializable {

    /**
    * 
    */
    @Schema(description = "")
    private Long id;

    /**
    * 租户id
    */
    @Schema(description = "租户id")
    private Long tenantId;

    /**
    * 党组织id
    */
    @Schema(description = "党组织id")
    private Long partyId;

    /**
    * 文库 id
    */
    @Schema(description = "文库 id")
    private Long libraryId;

    /**
    * 人员 id
    */
    @Schema(description = "人员 id")
    private Long userId;

    /**
    * 账号
    */
    @Schema(description = "账号")
    private String account;

    /**
    * 用户名
    */
    @Schema(description = "用户名")
    private String username;

    /**
    * 手机号
    */
    @Schema(description = "手机号")
    private String mobile;

    /**
    * 邮箱
    */
    @Schema(description = "邮箱")
    private String email;

    /**
    * 头像url
    */
    @Schema(description = "头像url")
    private String headImg;

    /**
    * 事件类型 1阅览 2下载
    */
    @Schema(description = "事件类型 1阅览 2下载")
    private Byte checkType;

    /**
    * 事件时间
    */
    @Schema(description = "事件时间")
    private Date checkTime;

    /************非数据库字段 start ************/
    @Schema(description = "党组织信息")
    private PartyOrganizationDto party;
    /************非数据库字段 end **************/
}
